package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;

/**
 * ETbDictionary is a Querydsl bean type
 */
@Label("字典表")
public class ETbDictionary extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13154070927570L;    
    @NotNull
    @Label("baseDictionaryId")
    @Size(max=24)
    private String baseDictionaryId;

    @Label("代码")
    @Size(max=45)
    private String code;

    @NotNull
    @Label("dictionaryId")
    private Integer dictionaryId;

    @NotNull(groups={UpdateCheck.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("名字")
    @Size(max=45)
    private String name;

    public String getBaseDictionaryId() {
        return baseDictionaryId;
    }

    public void setBaseDictionaryId(String baseDictionaryId) {
        this.baseDictionaryId = baseDictionaryId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getDictionaryId() {
        return dictionaryId;
    }

    public void setDictionaryId(Integer dictionaryId) {
        this.dictionaryId = dictionaryId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
         return String.format("ETbDictionary { baseDictionaryId : %s,code : %s,dictionaryId : %s,id : %s,name : %s }",baseDictionaryId,code,dictionaryId,id,name);
    }

}

